tools/hotplug: fix race during xen.conf creation
authorOlaf Hering <olaf@aepfle.de>
Wed, 1 Oct 2014 16:41:04 +0000 (18:41 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 6 Oct 2014 14:50:58 +0000 (15:50 +0100)
commiteac3f5122fd4769b2885d8ad78bcbcf5df2472c1
treea1ed56948da6606bacf16720cebb70d0d2c98dd8
parent3df671ec2603e8700665b62a29afe93d40f78457
tools/hotplug: fix race during xen.conf creation

A make -j8 will call the xen.conf rule twice. The move-if-changed
macro may fail if the tmp file was already removed by the other make
process. Fix this by let the all target depend on install.
Also remove the generated file with make clean.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
[ ijc -- fixed s/of/if/ typo in commit message ]
tools/hotplug/Linux/systemd/Makefile